package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.modular.order.model.Order;
import cn.stylefeng.guns.modular.order.model.OrderVerificationCode;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @Auther: 杨煜
 * @Date: 2019/12/11 13:13
 * @Description:
 */
public interface IOrderVerificationCodeService  extends IService<OrderVerificationCode> {
    /**
     * 分页查询
     *
     * @param condition
     * @return
     */
    Page<Map<String, Object>> selectOrderVerificationCodes(String condition);

    /**
     * 验证是否存在，是否已使用
     * @param code
     * @return
     */
    OrderVerificationCode verifyCode(String code);
}
